interface IUser {
  id: number
  name: string
  age?: number
}
const henry: IUser = {
  id: 101,
  name: 'Henry'
}

console.log('===')

// 与类型别名`type`的区别
interface IPerson {
  name: string
}
interface IPerson {
  age?: number
}
const Elisy: IPerson = { name: 'Elisy', age: 18 } // 正确

type typePerson = {
  name: string
}
// type typePerson = { //*  错误，标识符“typePerson”重复
//   age?: number
// }

console.log('===')

export {}
